package com.changgou.goods.dao;

import com.changgou.goods.pojo.Brand;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface BrandMapper extends Mapper<Brand> {

	@Select("select a.* from tb_spec a JOIN tb_category b ON a.template_id = b.template_id where b.name = #{name}  ")
	List<Brand> findByCateName(String name);
}
